package ali;

import java.util.Scanner;

public class Q2 {
    /**
     * n 个零件
     *
     * 每个零件 m 种
     * 每种 价格p[i]
     * 每种 性能w[i]
     *
     */
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Item[] arr = new Item[n];
        int money = scanner.nextInt();

        for(int i=0;i<n;i++){
            int m = scanner.nextInt();
            int[] p = new int[m];
            int[] w = new int[m];
            for(int j=0;j<m;j++){
                p[j] = scanner.nextInt();
            }
            for(int j=0;j<m;j++){
                w[j] = scanner.nextInt();
            }
            arr[i] = new Item(m,p,w);
        }



    }
}
class Item{
    int m;
    int[] p;
    int[] w;

    public Item(int m, int[] p, int[] w) {
        this.m = m;
        this.p = p;
        this.w = w;
    }
}
